import requests
from bs4 import BeautifulSoup
res=requests.get('http://news.sina.com.cn/c/xl/2018-05-20/doc-ihaturft1652167.shtml')
res.encoding='utf-8'
soup=BeautifulSoup(res.text,'html.parser')
title=soup.select('.main-title')[0].text
time=soup.select('.date')[0].text
source=soup.select('.source')[0].text
print(title,time,source)
